#ifndef _H_FLASH_
#define _H_FLASH_
#include "define.h"
#define FLASH_SECTOR0_BASE 0x08000000
#define FLASH_SECTOR1_BASE 0x08004000
#define FLASH_SECTOR2_BASE 0x08008000
#define FLASH_SECTOR3_BASE 0x0800C000
#define FLASH_SECTOR4_BASE 0x08010000
#define FLASH_SECTOR5_BASE 0x08020000
#define FLASH_SECTOR6_BASE 0x08040000
#define FLASH_SECTOR7_BASE 0x08060000
#define TARGET_SECTOR FLASH_SECTOR7_BASE

extern void flash_write_data(U32 addr, U32 *buff, U16 size);
extern void flash_read_data(U32 addr, U32 *buff, U16 size);
extern void flash_erase_data(void);
#endif